<template>
  <h1>El-作业2</h1>
  <div class="common-layout">
    <el-container>
      <el-header height="30px" style="background-color: lightskyblue; font-size: 20px; font-weight: bold; color: white">后台管理系统</el-header>
      <el-container>
        <el-aside width="200px">
<el-menu style="margin-left: 20px;">
  <el-menu-item index="1">员工管理</el-menu-item>
  <el-menu-item index="2">轮播图管理</el-menu-item>
  <el-menu-item index="3">商品管理</el-menu-item>
</el-menu>
        </el-aside>
        <el-main>
          <el-table :data="arr" style="width: 100%;">
            <el-table-column prop="num" label="编号" type="index" width="180" />
            <el-table-column prop="name" label="姓名" width="180" />
            <el-table-column prop="salary" label="工资" width="180" />
            <el-table-column prop="job" label="职位" />
          </el-table>
        </el-main>
      </el-container>
    </el-container>
  </div>
</template>

<script setup>
import {ref} from "vue";
const arr = ref(
    [
      {name:'张三',salary:234,job:'门卫'},
      {name:'李四',salary:23423,job:'外卖员'},
      {name:'王五',salary:574,job:'监控大爷'},
      {name:'赵六',salary:867,job:'保安队长'},
    ]
)

</script>

<style scoped>

</style>